//
//  ExplainViewController.m
//  MPWeChatDemo
//
//  Created by HappyMilk 01 on 2017/5/2.
//  Copyright © 2017年 srulos. All rights reserved.
//

#import "ExplainViewController.h"
#import "LoginHeader.h"

@interface ExplainViewController ()


@property (weak, nonatomic) IBOutlet UITextView *textview;
@end

@implementation ExplainViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.title = @"Terms of Service and Privacy Policy";
    
    
    
    
    if(IS_CHINESE){
        NSString *path = [[NSBundle mainBundle]pathForResource:@"userCN" ofType:@".txt"];
        NSString *str = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
        _textview.text = str;
    }else{
        NSString *path = [[NSBundle mainBundle]pathForResource:@"userEN" ofType:@".txt"];
        NSString *str = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
        _textview.text = str;
    }
    
    
}

@end
